﻿@model SoftHotel.Models.Servicio

@{
    ViewBag.Title = "Agregar Servicio";
}

<h2>Agregar</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm())
{
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Servicio</legend>

 <table rules="none" style="border-color: Black; width: 900px; margin-bottom: 0px;">
	<tbody><tr>
		<td style="width: 20px;"></td>
		<td style="font-weight: bold;"> Nombre:</td>
		<td>@Html.EditorFor(model => model.nombre)</td>	
		<td style="font-weight: bold;"> Sede:</td>
	 	<td>@Html.DropDownList("idSede")
            @Html.ValidationMessageFor(model => model.idSede)</td>	
	</tr>
	<tr>	
		<td style="width: 20px;"></td>
        <td style="font-weight: bold;"> Estado:</td>
		<td>@Html.DropDownList("estado")
            @Html.ValidationMessageFor(model => model.estado)</td>
		<td style="font-weight: bold;"> Producto:</td>
	 	<td>@Html.DropDownList("idProducto","Ninguno")
            @Html.ValidationMessageFor(model => model.idProducto)</td>    </tr>
    </tbody>
  </table>

    </fieldset>
    <form action = "Agregar" method = "post">
        <center>
	        <input value="Guardar" type="submit" name = "button"/> @{/* que estos sean tipo button*/}
	        <input value="Cancelar" type="submit" name = "button"/>
        </center>
    </form>
}